package com.py.custom.business.demo.core.service;

import com.py.custom.business.demo.core.service.model.TemplatePageDTO;
import com.py.custom.business.demo.protocol.request.AddTemplateRequest;
import com.py.custom.business.demo.protocol.request.DelTemplateRequest;
import com.py.custom.business.demo.protocol.request.TemplateRequest;
import com.py.custom.business.demo.protocol.request.UpdateTemplateRequest;

/**
 * description：
 */
public interface TemplateService {

    /**
     * 分页查询
     *
     * @param request
     * @return
     */
    TemplatePageDTO query(TemplateRequest request);

    /**
     * 添加模板
     *
     * @param request
     * @return
     */
    boolean addTemplate(AddTemplateRequest request);


    /**
     * 修改模板
     *
     * @param request
     * @return
     */
    boolean updateTemplate(UpdateTemplateRequest request);

    /**
     * 删除模板
     *
     * @param request
     * @return
     */
    boolean delTemplate(DelTemplateRequest request);


}
